﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace WPF60.Infrastructure.AttachedProperties
{
    public static class BooleanProperty
    {
        public static bool GetBool(DependencyObject obj)
        {
            return (bool)obj.GetValue(BoolProperty);
        }

        public static void SetBool(DependencyObject obj, bool value)
        {
            obj.SetValue(BoolProperty, value);
        }

        // Using a DependencyProperty as the backing store for Bool.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty BoolProperty =
            DependencyProperty.RegisterAttached("Bool", typeof(bool), typeof(BooleanProperty), 
            new UIPropertyMetadata(false));



    }
}
